package com.myjar.excel.serializer;

import org.apache.poi.ss.usermodel.Cell;

public class DoubleCodec implements ObjectSerializer<Double> {

    static final DoubleCodec instance = new DoubleCodec();

    @Override
    public void write(Cell cell, Double aDouble) {
        cell.setCellValue(aDouble);
    }

    @Override
    public Double read(Cell cell) {
        return cell.getNumericCellValue();
    }
}
